package cn.taoticket.client;
import cn.taoticket.pojo.TaoticketLinkUser;

import cn.taoticket.fallback.TaoticketLinkUserClientFallBack;
import java.util.List;
import java.util.Map;

import cn.taoticket.config.TaoTicketConfiguration;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestBody;
/**
* Created by shang-pc on 2018/5/15.
*/
@FeignClient(name = "taoticket-user-provider", configuration = TaoTicketConfiguration.class, fallback = TaoticketLinkUserClientFallBack.class)
public interface RestTaoticketLinkUserClient {
@RequestMapping(value = "/getTaoticketLinkUserById",method = RequestMethod.POST)
public TaoticketLinkUser getTaoticketLinkUserById(@RequestParam("id") Long id)throws Exception;

@RequestMapping(value = "/getTaoticketLinkUserListByMap",method = RequestMethod.POST)
public List<TaoticketLinkUser>	getTaoticketLinkUserListByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/getTaoticketLinkUserCountByMap",method = RequestMethod.POST)
public Integer getTaoticketLinkUserCountByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/qdtxAddTaoticketLinkUser",method = RequestMethod.POST)
public Integer qdtxAddTaoticketLinkUser(@RequestBody TaoticketLinkUser taoticketLinkUser)throws Exception;

@RequestMapping(value = "/qdtxModifyTaoticketLinkUser",method = RequestMethod.POST)
public Integer qdtxModifyTaoticketLinkUser(@RequestBody TaoticketLinkUser taoticketLinkUser)throws Exception;
}

